package web.stu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 成绩表
 * @TableName score
 */
@TableName(value ="score")
@Data
public class Score implements Serializable {
    /**
     * 成绩ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生ID
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 课程ID
     */
    @TableField(value = "course_id")
    private Integer courseId;

    /**
     * 教师ID
     */
    @TableField(value = "teacher_id")
    private Integer teacherId;

    /**
     * 班级ID
     */
    @TableField(value = "class_id")
    private Integer classId;

    /**
     * 成绩
     */
    @TableField(value = "score")
    private BigDecimal score;

    /**
     * 审核状态(0:拒绝,1:通过,2:复核中)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}